package com.jblog.core.model.blog.param;

import com.jblog.core.model.BaseParam;
import com.jblog.core.model.account.Account;
import com.jblog.core.model.blog.Category;
import com.jblog.core.model.blog.archive.PostCalendarArchive;
import com.jblog.core.model.blog.order.PostOrder;
import com.jblog.core.model.common.Privacy;
import com.jblog.core.model.common.Source;
import com.jblog.core.model.common.Status;

public class PostParam extends BaseParam {
    private Category category;
    private String alias;
    private Boolean isTop;
    private Source source;
    private Status status;
    private Boolean isAllowComment;
    private Privacy privacy;
    private Account postBy;
    //separate by ','
    private String tagIds;
    //separate by ','
    private String excludeCategoryIds;
    private PostCalendarArchive archive;
    private PostOrder order = PostOrder.SORTID;
    
    public PostParam() {
    }
    
    public PostParam(Long id) {
        setId(id);
    }
    public PostParam(String alias) {
        this.alias = alias;
    }

    public PostParam(Integer start, Integer end) {
        super(start, end);
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Boolean getIsTop() {
        return isTop;
    }

    public void setIsTop(Boolean isTop) {
        this.isTop = isTop;
    }

    public Source getSource() {
        return source;
    }

    public void setSource(Source source) {
        this.source = source;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Privacy getPrivacy() {
        return privacy;
    }

    public void setPrivacy(Privacy privacy) {
        this.privacy = privacy;
    }

    public Boolean getIsAllowComment() {
        return isAllowComment;
    }

    public void setIsAllowComment(Boolean isAllowComment) {
        this.isAllowComment = isAllowComment;
    }

    public PostOrder getOrder() {
        return order;
    }

    public void setOrder(PostOrder order) {
        this.order = order;
    }

    public Account getPostBy() {
        return postBy;
    }

    public void setPostBy(Account postBy) {
        this.postBy = postBy;
    }

    public String getTagIds() {
        return tagIds;
    }

    public void setTagIds(String tagIds) {
        this.tagIds = tagIds;
    }

    public String getExcludeCategoryIds() {
        return excludeCategoryIds;
    }

    public void setExcludeCategoryIds(String excludeCategoryIds) {
        this.excludeCategoryIds = excludeCategoryIds;
    }

    public PostCalendarArchive getArchive() {
        return archive;
    }

    public void setArchive(PostCalendarArchive archive) {
        this.archive = archive;
    }





    //-----------------------------------------
    private String cssClass;

    public String getCssClass() {
        return cssClass;
    }
    public void setCssClass(String cssStyle) {
        this.cssClass = cssStyle;
    }
    

}
